package com.cloud.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 消费者
 * </p>
 *
 * @author wenjin
 * @since 2020-11-23
 */
@Data
@TableName("msg_consumer")
public class Consumer implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 主题
     */
    @TableField("topic")
    private String topic;

    /**
     * 服务名
     */
    @TableField("service_name")
    private String serviceName;

    /**
     * 重试次数
     */
    @TableField("retry_count")
    private Integer retryCount;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String TOPIC = "topic";

    public static final String SERVICE_NAME = "service_name";

    public static final String RETRY_COUNT = "retry_count";

    public static final String CREATE_TIME = "create_time";

}
